Eye Candy for Authorware, Part 2: Integrating the Graphics
Table of Contents
Adding the Real Buttons
You'll recall that in part one, you exported two groups of buttons. One group you exported as BMP files, and the other you exported as PNG files. The BMP files were created with hard edges where they butted up against the background that was transparent in Fireworks. If you've taken a look at the exported version of those graphics, you'll see that the transparent background exported as white.
By default, when you import a graphic into the button editor, it imports as matted. The button editor cannot handle alpha transparency, which is why you did not export these buttons as PNG files.
Begin by setting up an interaction.
-
Drag a map next to it, and select button for the response type.
Figure 14. Dragging a map to the flowline and applying a button response type
- Add a second button response.
-
Name your new buttons Menu and Help.
Figure 15. Naming the buttons
- You can access the Button Editor in one of two ways. One way is by selecting Window > Buttons. The other is through the Response Properties Dialog box of any button response. The latter is how you are going to do it, so you can create a new button and assign it at the same time.
-
Double-click the Menu button response symbol to open the Response Properties dialog box.
Figure 16. The Response Properties dialog box
-
Now click the Buttons Button (no, there's not an echo in here). It's just beneath the picture of what your Menu button looks like right now.
Figure 17. The Buttons dialog box
-
You need to create a new button, so click Add. This will bring up the Button Editor dialog box.
Figure 18. The Button editor dialog box
-
Now, it's just a matter of importing the states. Click the Import button next to the Graphic drop-down menu.
Figure 19. Importing the button state graphics
- Navigate to your finished bitmaps, and find the graphic that you exported from the "up" state of your button. It should have the same file name, with a BMP extension.
-
Click the Import button to import it.
Figure 20. Setting the button state graphics in the button editor dialog box
-
Add a description for your button. Then import the Down and Over states.
Figure 21. Adding descriptions to the button
- For the Over state, you are going to add a label which will pop up when the cursor rolls over the button.
- With the Over state selected, choose "show label" from the Label drop-down menu.
- Drag the label over to appear below and to the right of the button.
-
That dark color won't show up on the dark interface frame, so you need to change the color. Make sure the text is still selected, then select Window > Inspectors > Colors, or just use the Ctrl+K keyboard shortcut.
Figure 22. Changing the color of the button description
- This will open a Color Inspector like you use in Display Icons. Select a light color. I used white. If you want, you can set the checked state of the button to use the down graphic.
- Click OK to close the button editor and add your button.
- Click OK again at the Buttons window. This should bring you back to the Response Properties dialog box. You may find it convenient to change the cursor to a pointing hand before you close the dialog box.
- Click OK to close the dialog box and keep the changes.
-
Using what you have just learned, repeat these steps to import the states of the Help button.
Your Authorware file should look like figure 23 below.
Figure 23. Applying the changes to the Help button
-
Align your buttons over the spaces made for them.
Figure 24. Aligning the buttons in interface
- Save your work and pat yourself on the back for getting this far.